import QtQuick 2.6
import QtQuick.Layouts 1.1
import QtMultimedia 5.5
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4

import "../../../../Base/UiBase"
import "../../../../Base/Config"
import Code 1.0

import "../../NewPost/Music"

// column[1]
Rectangle {
    id: root
    property url source
    property alias text: textShow.text
    width: parent.width
    height: 365 * Size.ratio
    color: Color.foreground
    Audio {
        id: audio
        source: root.source
    }

    Column {
        anchors.fill: parent
        spacing: 0
        Text {
            id: textShow
            width: parent.width
            height: 215 * Size.ratio
            padding: Size.elementInterval
            font.pixelSize: Size.normalFont
            color: Color.input
            wrapMode: Text.WrapAnywhere
        }
        MusicPlayer {
            x: Size.elementInterval
            y: Size.elementInterval
            width: parent.width - x - x
            height: 130 * Size.ratio
            source: root.source
        }
    }
} // column[1]
